import {
	defineConfig
} from 'vite';
import uni from '@dcloudio/vite-plugin-uni';

export default defineConfig({
	plugins: [uni()],
	server: {
		host: '0.0.0.0',
		port: 9527,
		open: true,
		proxy: {
			'/conner': {
				target: 'https://api.it120.cc',
				changeOrigin: true,
				rewrite: (path) => path.replace(/^\/conner/, '/conner'),
			},
		}
	}
});